/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
 */

package com.huawei.rpc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author Lijl
 * @ClassName RegistryProperties
 * @Description 注册中心地址配置
 * @Date 2022/2/15 17:41
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "spring.rpc.registry")
public class RegistryProperties {
    private final String ADDRESS = "127.0.0.1";
    private final int PORT = 2181;
    private String address;
    private int port;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
